package com.zkthink.ceres.cms.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.zkthink.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import com.zkthink.base.entity.SuperEntity;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 装修配置表
 * </p>
 *
 * @author kellen
 * @since 2020-05-16
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "CmsTemplateUpdateDTO", description = "装修配置表")
public class CmsTemplateUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "id不能为空", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 自定义页面名称
     */
    @ApiModelProperty(value = "自定义页面名称")
    @Length(max = 100, message = "自定义页面名称长度不能超过100")
    private String name;
    /**
     * 配置内容
     */
    @ApiModelProperty(value = "配置内容")
    private String config;
    /**
     * 是否自定义
     */
    @ApiModelProperty(value = "是否自定义")
    private Boolean isCustom;
    /**
     * 是否删除 0未删除 1已删除
     */
    @ApiModelProperty(value = "是否删除 0未删除 1已删除")
    private Integer isDelete;
}
